package guoanmaker.operator.business.service;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import guoanmaker.operator.business.model.OperatorLoginBackground;
import guoanmaker.operator.business.repository.OperatorLoginBackgroundRepository;

@Service
public class OperatorLoginBackgroundService implements OperatorLoginBackgroundServiceInterface {
	@Autowired
	private OperatorLoginBackgroundRepository operatorLoginBackgroundRepository;

	@Override
	@Transactional
	public OperatorLoginBackground savebackground(OperatorLoginBackground operatorLoginBackground) {
		// TODO Auto-generated method stub
		return operatorLoginBackgroundRepository.save(operatorLoginBackground);
	}

	@Override
	public OperatorLoginBackground getbackgroundById(String id) {
		// TODO Auto-generated method stub
		return operatorLoginBackgroundRepository.selectOperatorLoginBackgroundById(id);
	}
}
